<template>
  <Panel title="楼层信息" width="380px">
    <div class="map">
      <p class="title">2.5D地图</p>
      <img src="/images/floor-map.png" />
    </div>
    <h2 class="card-title">楼层企业</h2>
    <div class="scroll-view">
      <div class="grid">
        <div class="grid-item" v-for="item in datasource">
          <div class="user">
            <img class="avatar" src="/images/avatar.png" />
            <div class="content">
              <div class="title">{{ item.name }}</div>
              <div class="subtitle">{{ item.area }}</div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <h2 class="card-title">公司简介</h2>
    <div class="text">
        <p>泰州数据产业园区位于泰州医药高新区东部核心区，占地面积100亩，规划建筑面积逾20万平方米。其中，已投入使用的数据大厦一期总建筑面积5.8万平方米，建有IDC机房、数据中心、IT应用系统平台、教培中心、商务中心、会议中心、员工餐厅等功能配套区和4万平方米的写字办公区；数据大厦二期工程将于近期启动建设。</p>
        <p>泰州数据产业园区位于泰州医药高新区东部核心区，占地面积100亩，规划建筑面积逾20万平方米。其中，已投入使用的数据大厦一期总建筑面积5.8万平方米。
</p>
    </div>
  </Panel>
</template>

<script lang="ts" setup>
const datasource = ref([
  { id: "1", img: "img", name: "张三", code: "A00101", area: "123人", status: "在线" },
  { id: "2", img: "img", name: "张三", code: "A00101", area: "123人", status: "在线" },
  { id: "3", img: "img", name: "张三", code: "A00101", area: "123人", status: "通话中" },
  { id: "4", img: "img", name: "张三", code: "A00101", area: "123人", status: "在线" },
  { id: "5", img: "img", name: "张三", code: "A00101", area: "123人", status: "在线" },
  { id: "5", img: "img", name: "张三", code: "A00101", area: "123人", status: "离线" },
  { id: "5", img: "img", name: "张三", code: "A00101", area: "123人", status: "离线" },
  { id: "5", img: "img", name: "张三", code: "A00101", area: "123人", status: "离线" },
  { id: "5", img: "img", name: "张三", code: "A00101", area: "123人", status: "离线" },
  { id: "5", img: "img", name: "张三", code: "A00101", area: "123人", status: "离线" },
  { id: "5", img: "img", name: "张三", code: "A00101", area: "123人", status: "离线" },
]);
onMounted(() => {});
</script>
<style lang="scss" scoped>
.map {
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #fff;
}
.card-title{
    font-size: 25px;
    font-weight: 400;
    font-family: YouSheBiaoTiHei;
    color: #fff;
    text-align: left;
    border-bottom: 1px solid;
    padding: 12px 0px;
    margin: 0px;
    border-image: linear-gradient(to right, rgba(255, 255, 255, 0) 1%, #FFFFFF 50%,rgba(255, 255, 255, 0) 100%) 1 round;
}
.scroll-view {
  margin: 16px 0px;
  height: 260px;
  overflow-y: auto;
  &::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 5px;
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background-color: #2f80ed;
  }

  &::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    background-color: rgba(37, 96, 255, 0.31);
  }
}
.grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;

  .grid-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 6px;
    align-items: center;
    width: 47%;
    color: #fff;
    padding: 6px;
    background: rgba(23, 25, 41, 0.8);
    box-shadow: 0px 3.38px 3.38px 0px rgba(27, 65, 168, 0.69);
    .user {
      display: flex;
      flex-direction: row;
      gap: 6px;
    }
    .content {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .title {
      font-size: 16px;
      font-family: YouSheBiaoTiHei;
    }
    .subtitle {
      color: #41dbfd;
      font-size: 12px;
    }

    .status {
      font-size: 12px;
    }
  }
}

.text{
    font-size: 12px;
    color: #fff;
    text-indent: 24px;
    line-height: 24px;
    text-align: left;
}
</style>
